<div class="row animate fadeIn">
    <form id="" class="form-horizontal"  method="post">
      <?php foreach ($rates_data as $rates) { ?>
        <div class="ibox-title" style="border:none;"><h5 style="color: #00afef"><i>View Rates</i></h5>
           
        </div>
        <div class="ibox-content">   
          <div class="form-group">
              <label class="col-lg-3 control-label">Rate Name</label>
            <div class="col-lg-4">
              <input type="text" name="" class="form-control" value="<?php echo $rates->rate_name ;?>" readonly>
            </div>
          </div>
          <div class="form-group">
              <label class="col-lg-3 control-label">Description</label>
            <div class="col-lg-4">
              <input type="text" name="" class="form-control" value="<?php echo $rates->description ;?>" readonly>
            </div>
          </div>
          <div class="form-group">
              <label class="col-lg-3 control-label">Enable</label>
            <div class="col-lg-4">
              <input type="checkbox" value="ok" name="" id="" class="i-checks" <?php echo($rates->enable_flag == 'Y' ? 'checked' : '' ); ?> disabled>
            </div>
          </div>
        </div>
        <?php } ?>
    </form>
<!--  -->
        <div id="edit_rate_sched" class="ibox-content">
            <h3 style="color: #00afef">Rate Schedule</h3>
            </br>
              <table id="" class="table table-bordered" style="width:70%;">
                <thead>
                    <tr>
                      <th style="">Charge Element</th>
                      <th style="width:130px;text-align:right;">Usage Quantity</th>
                      <th style="width:130px;text-align:right;">Rate</th>
                    </tr>     
                </thead>              
                <tbody id="" class="animate fadeIn">   
                <?php foreach ($sched_data as $sched) { ?>
                  <tr>
                    <td><?php echo $sched->charge_name; ?></td>
                    <td style="width:130px;text-align:right;"><?php echo $sched->usage_qty; ?></td>
                    <td style="width:130px;text-align:right;"><?php echo $sched->rate; ?></td>
                  </tr>
                <?php } ?>    
                </tbody>
              </table> 
        </div>
</div>
<script>
            $(document).ready(function () {
                $('.i-checks').iCheck({
                    checkboxClass: 'icheckbox_square-green',
                    radioClass: 'iradio_square-green',
                });
                $('#viewX').click(function(){
                    close_view();
               });
            });
</script> 